home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / uud / uud.doc < prev    next >
Encoding:
Text File  |  1994-10-25  |  13.1 KB  |  385 lines

  1. Batch UUDecoder Version 1.3 for DOS
  2. By Jeff Lee
  3.  
  4. Released: 7/30/94
  5.  
  6. Introduction
  7. ------------
  8. Welcome to the first ever (at least to my knowledge) batch 
  9. UUEncoder!  This program was primarily written for my own 
  10. purposes because I got terribly tired of uudecoding each file in 
  11. a directory manually.  You probably know the feeling.. Type 
  12. uudecode dog.. Wait for it to finish.. Type uudecode cat.. Wait 
  13. for it to finish.. etc..  Even worse were the split files!
  14. Well, with this program, if you know how to use DOS 'dir' you 
  15. know how to use UUD!  The reason for this is that UUD can 
  16. accept all standard DOS wildcards.  To solve for the split files,
  17. UUD features a fairly advanced parsing system to correctly decode
  18. the files in whatever order they may be.  In the next couple of 
  19. sections, you'll learn how to use UUD and use it to its 
  20. maximum potential.
  21.  
  22.  
  23. What is a wildcard?
  24. -------------------
  25. For those of you who have no idea what a wildcard is, it is 
  26. defined in THE COMPUTER GLOSSARY by Alan FREEDMAN as "symbols 
  27. used to represent any value when naming files".  Others of you 
  28. may know it as the symbols '*' and '?' used in the DOS DIR 
  29. command.  Basically, it makes it easier to group items toghther. 
  30.  Although the '*' and the '?' are both wildcards, they have 
  31. slightly different functions.  Here, I'll show you what I mean 
  32. with a couple of examples.  Lets say you had the following 
  33. directory:
  34.  
  35. C:\>DIR
  36.  
  37.  Volume in drive D is STACVOL_000
  38.  Directory of D:\DOWNLOAD
  39.  
  40. .            <DIR>     03-07-93   9:20p
  41. ..           <DIR>     03-07-93   9:20p
  42. ALLDOOM      <DIR>     03-02-94   7:34p
  43. EMS          <DIR>     02-12-94   8:38a
  44. FNTLIN10     <DIR>     03-28-93   2:37p
  45. GUI          <DIR>     02-17-94   7:15a
  46. ISSUE15      <DIR>     05-26-94   1:11p
  47. WMP          <DIR>     08-28-93   4:05a
  48. ARMADA   ZIP    219340 06-01-94   3:13p
  49. BRISCOJR ZIP     87031 05-29-94   8:00a
  50. DMAREACD ZIP      3362 03-02-94   3:01p
  51. DOOMV55  FAQ    142039 02-24-94   6:20p
  52. DOOMV55  ZIP     49793 02-26-94   4:22p
  53. EMSCL13  ZIP     20593 02-12-94   8:20a
  54. EZDB     ZIP     49271 02-26-94   6:52p
  55. FBTRNS   ZIP      7880 05-27-94   4:27p
  56. GAMMA    ZIP     91486 02-21-94  10:27p
  57. GIF_LIBL LIB     25600 02-20-94   5:39p
  58. GUI      ZIP    199857 02-17-94   7:14a
  59. HOWTOVC  TXT     28422 02-26-94   6:54p
  60. ISSUE15  ZIP    629578 05-26-94   1:02p
  61. NUSER    EXE     36687 02-23-94   7:31p
  62. NUSER    ZIP     19328 02-26-94   4:01p
  63. PROMODEM ZIP     65637 02-20-94   5:35p
  64. SYSSHOK  ZIP    159176 06-01-94   3:16p
  65. UNPROT   BAS         2 07-07-87  10:01a
  66. UNPROT   DOC      1476 07-07-87   9:56a
  67. UNPROT   ZIP       939 03-03-94   9:34p
  68. VOCFMAT  TXT      6212 02-12-94   2:47p
  69. UUCODE   ZIP      5289 06-09-94   7:09p
  70. DIRLIST              0 06-11-94  12:05p
  71. ASP          <DIR>     06-10-94   2:34p
  72.        32 file(s)    1848998 bytes
  73.              9142272 bytes free
  74.  
  75. You could use a command like "dir *.zip" to view all the .zip 
  76. files as so:
  77. C:\>dir *.zip
  78.  
  79.  Volume in drive D is STACVOL_000
  80.  Directory of D:\DOWNLOAD
  81.  
  82. ARMADA   ZIP    219340 06-01-94   3:13p
  83. BRISCOJR ZIP     87031 05-29-94   8:00a
  84. DMAREACD ZIP      3362 03-02-94   3:01p
  85. DOOMV55  ZIP     49793 02-26-94   4:22p
  86. EMSCL13  ZIP     20593 02-12-94   8:20a
  87. EZDB     ZIP     49271 02-26-94   6:52p
  88. FBTRNS   ZIP      7880 05-27-94   4:27p
  89. GAMMA    ZIP     91486 02-21-94  10:27p
  90. GUI      ZIP    199857 02-17-94   7:14a
  91. ISSUE15  ZIP    629578 05-26-94   1:02p
  92. NUSER    ZIP     19328 02-26-94   4:01p
  93. PROMODEM ZIP     65637 02-20-94   5:35p
  94. SYSSHOK  ZIP    159176 06-01-94   3:16p
  95. UNPROT   ZIP       939 03-03-94   9:34p
  96. UUCODE   ZIP      5289 06-09-94   7:09p
  97.        15 file(s)    1608560 bytes
  98.              9142272 bytes free
  99.  
  100. The reason for this is because the '*' symbol means basically 
  101. 'all'.  So, when you type in "DIR *.zip", you basically are 
  102. telling the computer to display any and all files with any 
  103. filename, with a .ZIP extention.  You can reverse this as well.  
  104. Doing a DIR NUSER.* would output:
  105.  
  106. C:\>dir nuser.*
  107.  
  108.  Volume in drive D is STACVOL_000
  109.  Directory of D:\DOWNLOAD
  110.  
  111. NUSER    EXE     36687 02-23-94   7:31p
  112. NUSER    ZIP     19328 02-26-94   4:01p
  113.     2 file(s)      56015 bytes
  114.              9166848 bytes free
  115.  
  116. A final use of it would be to find files starting with a letter, 
  117. or group of letters.  Take a guess at what DIR G*.* would do:
  118.  
  119. C:\>dir g*.*
  120.  
  121.  Volume in drive D is STACVOL_000
  122.  Directory of D:\DOWNLOAD
  123.  
  124. GUI          <DIR>     02-17-94   7:15a
  125. GAMMA    ZIP     91486 02-21-94  10:27p
  126. GIF_LIBL LIB     25600 02-20-94   5:39p
  127. GUI      ZIP    199857 02-17-94   7:14a
  128.     4 file(s)     316943 bytes
  129.              9166848 bytes free
  130.  
  131. Get it?  Not that hard right?  The G*.* meant all files beginning 
  132. with G with any extention.  The '?' symbol is similiar to the '*' 
  133. except that it replaces only 1 letter, instead of an entire 
  134. filename or exention.  This becomes useful when you don't want 
  135. all the files matching a '*' specification.  Lets say we only 
  136. wanted the files that had a 3 letters in their filename not 
  137. including extention.  We would do the following:
  138.  
  139. C:\>dir ???.zip
  140.  
  141. As expected, the following would occur:
  142.  
  143.  Volume in drive D is STACVOL_000
  144.  Directory of D:\DOWNLOAD
  145.  
  146. GUI      ZIP    199857 02-17-94   7:14a
  147.     1 file(s)     199857 bytes
  148.              9166848 bytes free
  149.  
  150. Well, that about covers everything with wildcards.  Just in case 
  151. you didn't know, many DOS commands accept wildcards.  As shown 
  152. here, DIR allows it.  Others include COPY, MOVE, XCOPY, ATTRIB, 
  153. and many more.  Now that you have a general idea of there usage, 
  154. lets use this knowledge to use UUD.
  155.  
  156.  
  157. Usage
  158. -----
  159. If you're here, I assume you either read the section on 
  160. WILDCARDS, or you already know how to use them.  Like I said 
  161. before, UUD has much the same format as dir in the sense that UUD 
  162. accepts wildcards.  For instance, if you had a directory full of 
  163. UUENCODED files, all you would have to do is:
  164.  
  165. UUD *.*
  166.  
  167. and voila!  All the files will automatically be decoded.  UUD 
  168. also recognizes the '?' wildcard.  So, lets say you had a 
  169. directory of files names FILE.000-FILE.500.  You could easily 
  170. decode only FILE.000-FILE.009 by using:
  171.  
  172. UUD FILE.00?
  173.  
  174. See how easy it is?  Of course, then you could decode one file at 
  175. a time.
  176.  
  177. UUD FILE.000
  178.  
  179.  
  180. HOW UUD HANDLES SPLIT FILES
  181. ---------------------------
  182. When using WILDCARDS, and UUD encounters a file that appears to 
  183. split into several parts, UUD will sort all directory entries 
  184. that satisfy the WILDCARD.  Then comes the complex part.  UUD 
  185. will search in either alphabetical or regular order (determined 
  186. by switches) for files that have the following three things in 
  187. their header:
  188.  
  189. 1)The same output file name as the first file.
  190. 2)The same number of parts as the first file.
  191. 3)The expected part number derived from the last processed file.
  192.  
  193. If UUD finds a "SECTION X", where X is a number, it will use that
  194. number instead of the part number.
  195.  
  196. By applying these two methods, UUD is fairly hard to foul up.  
  197. Most of the time, it will pick the correct entry.  Actually, you 
  198. really don't even need to know this since UUD does it 
  199. automatically.  All you have to do is sit back, and watch!
  200.  
  201.  
  202. SWITCHES
  203. --------
  204. UUD options filenames
  205.  
  206. Options:
  207.  
  208. -? or -h
  209. Brings up the help screen giving brief details on how 
  210. to use them.
  211.  
  212. -v
  213. Verbose Mode.  The program will display all files 
  214. that have been processed instead of showing the most 
  215. recent processed file.
  216.  
  217. -n
  218. Disables Alphabetical sorting.  All files will be 
  219. processed in the order they appear in the directory.
  220.  
  221. -o
  222. Overwrite All Existing Files.  When UUD decodes, it 
  223. usually checks to make sure the new file being 
  224. created will not overwrite an existing file.  If -o 
  225. is used, it will not ask for permission but just 
  226. write over them.
  227.  
  228. Filenames:
  229. This can include as many files as you like, all which can take 
  230. wildcards.  You could do:
  231.  
  232. UUD dog*.* cat*.* bird*.* cow*.*
  233.  
  234. UUD will gather up all the files that match the file specifications,
  235. and then, according to switches, alphabatize or leave them alone.
  236.  
  237.  
  238. REGISTRATION of UUD
  239. -------------------
  240. Think back.. Way back.. To the point in time where you were a 15 
  241. year old kid in High School.  Remember how much money meant to 
  242. you?  Now think about me.  I currently am 15 and, like you at 
  243. that time, value money A LOT.  That's why I'm placing this 
  244. program in here as SHAREWARE.  Unlike all those big guys who 
  245. charge 30-40 buckaroos for a simple program, I'm asking for only 
  246. a measly 18 that's EIGHTteen dollars.  Actually, to play it fair
  247. for all those guys who are still using Version 1.2x, I'll charge
  248. ya only 8 dollars until August 15th.  If you liked this program, 
  249. I would really REALLY appreciate it if you payed the Registration
  250. fee.  If you can't afford to pay the registration fee, let me know 
  251. you exist, and I'll send it to you EMAIL ONLY free.  I'm basing this 
  252. policy on your HONESTY.
  253.  
  254.  
  255. WHAT DO I GET WHEN I REGISTER??!!
  256. ---------------------------------
  257. Well, first of all and most importantly, you get my never ending 
  258. thanks :).  I would be so grateful that if I were able to fly out 
  259. to wherever you live, I'd give you a big smack on the cheek and 
  260. ask you if you had a NICE, TEENage DAUGHTER that doesn't 
  261. currently have a boyfriend..  Just kidding! (although that would 
  262. be nice).
  263.     Seriously, I'll send you the registered version either by 
  264. EMAIL or SNAIL MAIL whichever you choose.  You'd get FREE 
  265. upgrades to the program (as well as UUE, a UUENCODER, when I 
  266. finish it) for as long as I update this thing.  You would also 
  267. have the option to BETA test for me if you want.  Trust me, you 
  268. don't want to miss out on the upcoming versions!  Upgrades to
  269. registered users will come through EMAIL only.
  270.  
  271.  
  272. HOW DO I REGISTER??!!
  273. ---------------------
  274. If you have a printer, print the file "ORDER.DOC"
  275.  
  276. If you don't have a printer -
  277. First, you would make a check or money order out to "Jeff Lee".
  278. Then, you would send that to:
  279.  
  280. Carrot Utilities
  281. 15284 Karl Ave
  282. Los Gatos, CA 95030
  283.  
  284. Lastly, Be sure to specify either EMAIL or SNAIL MAIL.  Whatever it is,
  285. be sure to include your NAME, ADDRESS, EMAIL ACCOUNT, and DISK SIZE.
  286.  
  287.  
  288. SHAREWARE CATALOGS
  289. ------------------
  290. I'd be glad for any and all Shareware Catalogs to incorporate 
  291. this program into their catalog or software library of some sort. 
  292. I'm not asking any money from you, but I AM asking you to TELL 
  293. ME if you do include this in a catalog.  You need my written
  294. permission to encorporate UUD into your product line.  After all, 
  295. at 15 I'm looking for things to stick on my Resume, and having 
  296. a piece of software published (kinda) would be a very unique thing!
  297.  
  298.  
  299. REPORTING BUGS
  300. --------------
  301. This is a very important asset to me, especially if you find that
  302. UUD decoded a file incorrectly (I'm most worried about SPLIT 
  303. files).  I need people to tell me if they encounter any 
  304. misspellings, bugs, etc. in the program.  If possible, send me 
  305. the files you were trying to DECODE.  Send them to me at the 
  306. EMAIL addresses that appear in the next section.  Not only will I 
  307. be deeply gratified (almost as much as you paying the 
  308. registration fee), but I'll also include your name in the next 
  309. version as a sign of my thanks.
  310.  
  311.  
  312. WHERE TO REACH THE AUTHOR
  313. -------------------------
  314. Well, I'm basically everywhere:
  315.  
  316. America On-line:        TSNGonzo                                <----2nd preferred
  317. Compuserve:             70740,2337                      <----Least preferred
  318. Internet:                       TSNGonzo@Netcom.com             <----Preferred
  319.  
  320.  
  321. TROUBLESHOOTING AND EVERYDAY QUESTIONS
  322. --------------------------------------
  323. When I try to run UUD from the program manager, all that happens is the screen
  324. flashes and then UUD returns me back to windows
  325.  
  326. Well, first of all, UUD is not a Windows program.  It requires the use of
  327. arguments passed on the command line.  Read this manual or type in just 'UUD'
  328. while in DOS or a DOS box.
  329.  
  330.  
  331. UUD continues to tell me that I have a "short file".
  332.  
  333. Most likely this means that you have not downloaded the complete UUEncoded
  334. file.  All UUEncoded files should end with an 'end' line.
  335.  
  336.  
  337. The Computer is talking to me now!
  338.  
  339. How'd that happen.. I know i'm a good programmer.. I'm not THAT 
  340. good.  Check to make sure your keyboard is plugged in backward so 
  341. that the oscillating chip within the computer can put the demons 
  342. away.
  343.  
  344.  
  345. Why doesn't UUD fax anything?
  346.  
  347. Try putting the sheet of paper you want to fax up to the monitor. 
  348.  Make sure the monitor has plenty of static so the paper will 
  349. stick!
  350.  
  351.  
  352. What's wrong with the author?
  353.  
  354. Right now, he's in deep mourning over the cancellation of Star 
  355. Trek: The Next Generation.  Don't worry, he'll be normal again by 
  356. the time Voyager or the movie comes out.
  357.  
  358.  
  359. DISCLAIMER
  360. ----------
  361. Ok.. I don't want anyone sueing me because this program messed 
  362. them bad or anything.  Although this program has been tested 
  363. thorougly by the author, I make no guarantee it will work 
  364. correctly on all programs.  If it messes you up, TOUGH - that's
  365. your problem.
  366.  
  367.  
  368.  
  369. All in all, I hope this program isn't TOO hard to learn.  I tried 
  370. to make it as simple as possible.
  371.  
  372. BYE!! REMEMBER TO REGISTER THIS PROGRAM!!
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.